//
//      Copyright 2011 Hengda Xiao 224080
//
//      Millionare
//
//      This program is free software; you can redistribute it and/or modify
//      it under the terms of the GNU General Public License as published by
//      the Free Software Foundation; either version 2 of the License, or
//      (at your option) any later version.
//
//      This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
//
//      04.05.2011



#ifndef QUESTION_H
#define QUESTION_H

#include <string>
#include <iostream>



using std::cout;
using std::endl;
using std::string;



class Question
{


public:
    Question();

    //The following functions are used to get the different arrtibutes

    int getLevel(){return level;}
    int getQuestNumber(){return questNumber;}
    string getDescription(){return description;}
    string getChoiceA(){return choice_A;}
    string getChoiceB(){return choice_B;}
    string getChoiceC(){return choice_C;}
    string getChoiceD(){return choice_D;}
    string getCorrectAns(){return correct_ans;}


    void printDescription(){ cout << "\n" << description << endl;}
    void printChoiceA(){ cout << "\n" << choice_A << endl;}
    void printChoiceB(){ cout << "\n" << choice_B << endl;}
    void printChoiceC(){ cout << "\n" << choice_C << endl;}
    void printChoiceD(){ cout << "\n" << choice_D << endl;}
    void printCorrectAns(){ cout << "\n" << correct_ans << endl;}

    //The following functions are used to set the different arrtibutes


    void setLevel(int tempLevel){level = tempLevel;}
    void setQuestNumber(int tempNumber){questNumber = tempNumber;}
    void setDes(string temp){description = temp;}
    void setChoiceA(string tempA){choice_A = tempA;}
    void setChoiceB(string tempB){choice_B = tempB;}
    void setChoiceC(string tempC){choice_C = tempC;}
    void setChoiceD(string tempD){choice_D = tempD;}
    void setCorrectAns(string tempAns){correct_ans = tempAns;}

private:
    int level;
    int questNumber;
    string description;
    string choice_A;
    string choice_B;
    string choice_C;
    string choice_D;
    string correct_ans;
};

#endif // QUESTION_H
